﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace Transformer.iHunter
{
    /// <summary>
    /// The argument of the event associated to a message
    /// </summary>
    public class MessageEventArgs : EventArgs
    {
        private IMessage message;

        /// <summary>
        /// Gets the message.
        /// </summary>
        /// <value>The message.</value>
        public IMessage Message
        {
            get { return message; }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageEventArgs"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public MessageEventArgs(IMessage message)
        {
            this.message = message;
        }
    }

    /// <summary>
    /// The event handler of the event associated to a message
    /// </summary>
    public delegate void MessageEventHandler(object sender, MessageEventArgs e);

}